/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartClothesHanger {
    static categoryCode = '010040007';

    static categoryName = '晾衣架';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartClothesHanger.categoryCode;
    }

    get categoryName() {
        return SmartClothesHanger.categoryName;
    }

    getLightSwitch(params) {
        return command({
            method: 'getLightSwitch',
            methodId: 'p3delsZM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pdN7PD2n',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPosition(params) {
        return command({
            method: 'getPosition',
            methodId: 'pDrhJxyz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqdcQE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkRemainTime(params) {
        return command({
            method: 'getWorkRemainTime',
            methodId: 'pgh0vbXI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkTime(params) {
        return command({
            method: 'getWorkTime',
            methodId: 'ptRSCYu9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDirectionControl(params) {
        return command({
            method: 'setDirectionControl',
            methodId: 'pGoxs3ER',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightSwitch(params) {
        return command({
            method: 'setLightSwitch',
            methodId: 'p1vFcGJW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pZgR0V5o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPosition(params) {
        return command({
            method: 'setPosition',
            methodId: 'peH3AFkq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAXwfVk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorktTime(params) {
        return command({
            method: 'setWorktTime',
            methodId: 'pUPQ5SA1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartClothesHanger;
